meson: set _GNU_SOURCE project wide
authorTim-Philipp Müller <tim@centricular.com>
Sat, 11 Mar 2017 22:06:07 +0000 (22:06 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 3 May 2017 14:10:53 +0000 (15:10 +0100)
Easier, also means we don't have to define it for
checks. that will only succeed with it defind.

meson.build

index 04a1f5e292bc5f872f5b819d9bff786acc2aaca5..196e3e155ee0b22e111f67dec2a96001a02a3511 100644 (file)
@@ -19,6 +19,8 @@ gtk_micro_version = gtk_version[2].to_int()
 gtk_interface_age = 0
 add_global_arguments('-DGTK_VERSION="' + meson.project_version() + '"', language: 'c')
 
+add_project_arguments('-D_GNU_SOURCE', language : 'c')
+
 # Define a string for the earliest version that this release has
 # backwards binary compatibility with for all interfaces a module
 # might. Unless we add module-only API with lower stability